package clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import pojo.Asset;

import java.util.List;

/**
 * @author HGD
 * @date 2022/9/27 23:39
 */
@FeignClient("asset")
public interface AssetClient {
    @PostMapping("/asset/hello")
    String hello(@RequestBody String name);

    /**
     * 批量导入
     *
     * @param list 列表
     * @return 是否导入成功
     */
    @PostMapping("/asset/batchInsertAsset")
    boolean batchInsertAsset(@RequestBody List<Asset> list);
}
